﻿app.controller('ChurchDashboardController', ['$scope', 'GlobalService', 'fileUpload', 'ApplicationService', 'alertboxservice', function ($scope, GlobalService, fileUpload, ApplicationService, alertboxservice) {


    BindGrid();
    
    function BindGrid() {
        url = "Church/GetChurchDashboard";
        ApplicationService.Getdatas(url).success(function (data) {
            debugger;
            $scope.chuchinfo = data;
        });

        url = "Church/GetChurchBirthDay";
        ApplicationService.Getdatas(url).success(function (data) {
            debugger;
            $scope.BirthDay = data;
        });
    }
    

    

}]);

